package cn.lijiajia3515.cairo.system.modules.file2;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.Duration;
import java.util.List;

/**
 * 获取访问 url 参数
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder(toBuilder = true)
public class GetObjectsUrlParam implements Serializable {

	/**
	 * 文件标识
	 */
	@NotNull
	@NotEmpty
	private List<String> keys;

	/**
	 * 过期时间
	 */
	private Duration ttl;
}
